import request from '@/utils/request'

export function add(data) {
  return request({
    url: 'course/create',
    method: 'post',
    data
  })
}

export function del(id) {
  return request({
    url: 'course/del/'+ id,
    method: 'post'
  })
}

export function info(id) {
  return request({
    url: 'course/info/'+ id,
    method: 'get'
  })
}
